<?php slot('title', "修改密码 - 五行测评") ?>
<div id="people" class="wrap clearfix">
  <div class="column span-150">
    <ul class="toolbar">
      <li>
        <a href="<?php echo url_for('@center') ?>">会员中心首页</a>
      </li>
      <li>
        <a href="<?php echo url_for('@my_test') ?>">我的测评</a>
      </li>
      <li>
        <a href="<?php echo url_for('@point_log') ?>">我的余额</a>
      </li>
      <li>
        <a href="<?php echo url_for('@invitation_link') ?>">邀请好友</a>
      </li>
      <li class="current">
        <a href="<?php echo url_for('@password') ?>">修改密码</a>
      </li>
    </ul>
  </div>
  <div class="column span-740 last">
    <h3>修改密码</h3>
    <?php $sf_params->get('success') and print '修改成功！' ?>
    <?php echo $form->renderGlobalErrors() ?>
    <form action="<?php echo url_for('@password') ?>" method="post">
      <table class="data-entry">
        <tbody>
          <tr>
            <th><?php echo $form['old_password']->renderlabel('原密码：') ?></th>
            <td>
              <?php echo $form['old_password'] ?>
              <span>请输入你的当前密码</span>
              <?php echo $form['old_password']->renderError() ?>
            </td>
          </tr>
          <tr>
            <th><?php echo $form['password']->renderLabel('新密码：') ?></th>
            <td>
              <?php echo $form['password'] ?>
              <span>设置新密码，最少6个字符，英文字母、数字或符号</span>
              <?php echo $form['password']->renderError() ?>
            </td>
          </tr>
          <tr>
            <th><?php echo $form['password_confirm']->renderLabel('再输一次：') ?></th>
            <td>
              <?php echo $form['password_confirm'] ?>
              <span>请再次输入设置的新密码</span>
              <?php echo $form['password_confirm']->renderError() ?>
            </td>
          </tr>
          <tr>
            <th></th>
            <td>
              <input type="hidden" name="sf_method" value="put" />
              <?php echo $form->renderHiddenFields() ?>
              <input class="button" type="submit" value="提交" />
              <input class="button ml-20" type="button" value="取消" />
            </td>
          </tr>
        </tbody>
      </table>
    </form>
  </div>
</div>